package homework.ooday02._cp.person;

import javax.print.Doc;

public class ExtendsTest {
    public static void main(String[] args) {
        Student p1 = new Student("张三",18,"PO","2211","0002");
        p1.eat();
        p1.sleep();
        p1.sayHi();
        p1.study();

        Teacher p2 = new Teacher("李四",50,"LK",5000);
        p2.eat();
        p2.sleep();
        p2.sayHi();
        p2.teach();

        Doctor p3 = new Doctor("王五",90,"MN","aaaa");
        p3.eat();
        p3.sleep();
        p3.sayHi();
        p3.cut();
    }
}
